import cv2
import matplotlib.pyplot as plt

# 读取图像
image = cv2.imread('image.jpg', cv2.IMREAD_GRAYSCALE)

# 创建ORB对象
orb = cv2.ORB_create()

# 检测ORB特征点
kp, des = orb.detectAndCompute(image, None)

# 绘制特征点
image_with_keypoints = cv2.drawKeypoints(image, kp, None, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)

# 显示结果
plt.imshow(image_with_keypoints, cmap='gray')
plt.title('ORB特征点')
plt.show()